home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global myCD
- cursor([185])
- set myCD to CheckDrive("mars.tst")
- add(the searchPaths, myCD)
- add(the searchPaths, myCD & "\vidata")
- add(the searchPaths, myCD & "\sounds")
- set the searchCurrentFolder to 0
- if the colorDepth = 8 then
- alert("Merci de passer en 32000 couleurs ou plus avant de lancer Rêves de Mars.")
- halt()
- end if
- end
-
- on CheckDrive weirdfil
- repeat with I = 66 to 90
- set drive to numToChar(I)
- set myThisPath to string(drive & ":\" & weirdfil)
- set myFile to fileio(mnew, "read", myThisPath)
- if objectp(myFile) then
- myFile(mdispose)
- return drive & ":"
- exit
- end if
- end repeat
- alert("Please check that Reves de MArs is on your CD drive.")
- end
-